package com.yunsom.testdemo.design.vistor;

/**
 * @author Xbao
 * @version 1.0
 * @description
 * @date 2021/3/19 16:45
 */
public class CtoVisitor implements Visitor {

  @Override
  public void visit(Engineer engineer) {
    System.out.println("工程师："+engineer.name+" 代码行数:"+engineer.getCodeLines());
  }

  @Override
  public void visit(Manager manager) {
    System.out.println("产品经理:"+manager.name+" 产品数量:"+manager.getProductAmount());
  }
}
